package com.weh.booksystem.service.impl;

import com.weh.booksystem.entity.Administrator;
import com.weh.booksystem.mapper.AdministratorMapper;
import com.weh.booksystem.service.AdministratorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdministratorServiceImpl implements AdministratorService {
    @Resource
    private  AdministratorMapper administratorMapper;

    public Administrator getAdministrator(String name, String password){
        return administratorMapper.getAdministrator(name, password);
    }

    @Override
    public int getAdministratorId(String name, String password) {
        return administratorMapper.getAdministratorId(name,password);
    }

}
